<!DOCTYPE html>
<html>
<head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
    <title>页面跳转中...</title>
    <style type="text/css">
    .body {padding:20px 30px; width: 500px; height: 160px;margin: 0 auto; margin-top: 100px;}
    .body p {font-size: 14px;}
    </style>
</head>
<body>
    <div class="body">
        <h2>{$msg}</h2>
        <p>如果您的浏览器 <span id="time">{eval echo $time+1;}</span> 秒钟之后没有自动跳转，<a href="{$url}">请点击链接直接跳转</a></p>
    </div>

    <script language="JavaScript1.2" type="text/javascript"> 
        var url = "{$url}";
        function delayURL() { 
            var delay=document.getElementById("time").innerHTML; 

            if(delay>1){ 
                delay--; 
                document.getElementById("time").innerHTML=delay; 
            }else{ 
                window.top.location.href=url; 
            } 
            setTimeout("delayURL('" + url + "')", 1000); 
        } 

        delayURL();
    </script>

</body>
</html>